package com.pactera.miyuangroup.vo.response;

import com.pactera.miyuangroup.util.JwtUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * AccessToken
 *
 * @author Wangwu
 * @create 2018-03-30 下午4:49
 **/
@ApiModel(description = "口令")
public class AccessToken extends BaseResponse{

    /**
     * token
     */
    @ApiModelProperty(value = "口令")
    private String access_token;

    /**
     * token 类型
     */
    @ApiModelProperty(value = "口令类型")
    private String token_type;

    /**
     * 时间
     */
    @ApiModelProperty(value = "有效期")
    private long expires_in;

    public String getAccess_token() {
        return access_token;
    }

    public void setAccess_token(String access_token) {
        this.access_token = access_token;
    }

    public String getToken_type() {
        return JwtUtils.getAuthorizationHeaderPrefix().replace(" ","");
    }

    public void setToken_type(String token_type) {
        this.token_type = token_type;
    }

    public long getExpires_in() {
        return expires_in;
    }

    public void setExpires_in(long expires_in) {
        this.expires_in = expires_in;
    }
}
